package com.wg.msuser.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wg.msuser.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where user_name=#{param1}")
    User getUserByUserName(String userName);

    @Select("select * from user where email= #{param1}")
    User getUserByEmail(String email);
}
